package com.jianguozh.difs.support.api.ops.dto;

import com.jianguozh.difs.framework.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 资源dto
 * @author hanrs
 * @email 4076130@qq.com
 * @since 2022/3/28 9:30
 */
@Data
public class ResBodyDto {

    /**
     * id
     */
    @NotBlank(groups = {UpdateGroup.class}, message = "id不能为空")
    private String id;

    /**
     * 资源代码
     */
    private String permission;

    /**
     * 徽章
     */
    private String badge;

    /**
     * 路径
     */
    @NotBlank(message = "路由不能为空")
    private String path;

    /**
     * 组件
     */
    private String component;

    /**
     * 展开
     */
    private Boolean opened;

    /**
     * 显示
     */
    private Boolean display;

    /**
     * 序号
     */
    private String sort;

    /**
     * 描述
     */
    private String description;
}
